package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 行业业务对象 carbon_industry
 *
 * @author ruoyi
 * @date 2023-08-29
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class CarbonIndustryBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 行业名称
     */
    @NotBlank(message = "行业名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 行业code
     */
    @NotBlank(message = "行业code不能为空", groups = { AddGroup.class, EditGroup.class })
    private String code;

    /**
     * 父级code
     */
//    @NotBlank(message = "父级code不能为空", groups = { AddGroup.class, EditGroup.class })
    private String parentCode;

    /**
     * 子级
     */
    private List<CarbonIndustryBo> children;

    /**
     *
     */
//    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    //层级
    private Integer level;
}
